package com.ct.entity.po;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.ct.entity.enums.DateTimePatternEnum;
import com.ct.utils.DateUtil;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 财务人员审批报销申请记录
 */
public class ReimbursementApprovalFi implements Serializable {

    /**
     * 财务人员审批报销申请编号
     */
    private Integer reimbursementApprovalFiId;

    /**
     * 报销申请编号
     */
    private Integer reimbursementId;

    /**
     * 报销款金额
     */
    private BigDecimal payment;

    /**
     * 财务人员编号
     */
    private String financeId;

    /**
     * 审批时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date date;

    public void setReimbursementApprovalFiId(Integer reimbursementApprovalFiId) {
        this.reimbursementApprovalFiId = reimbursementApprovalFiId;
    }

    public Integer getReimbursementApprovalFiId() {
        return this.reimbursementApprovalFiId;
    }

    public void setReimbursementId(Integer reimbursementId) {
        this.reimbursementId = reimbursementId;
    }

    public Integer getReimbursementId() {
        return this.reimbursementId;
    }

    public void setPayment(BigDecimal payment) {
        this.payment = payment;
    }

    public BigDecimal getPayment() {
        return this.payment;
    }

    public void setFinanceId(String financeId) {
        this.financeId = financeId;
    }

    public String getFinanceId() {
        return this.financeId;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getDate() {
        return this.date;
    }

    @Override
    public String toString() {
        return "财务人员审批报销申请编号:" + (reimbursementApprovalFiId == null ? "空" : reimbursementApprovalFiId) + "，报销申请编号:"
                + (reimbursementId == null ? "空" : reimbursementId) + "，报销款金额:" + (payment == null ? "空" : payment)
                + "，财务人员编号:" + (financeId == null ? "空" : financeId) + "，审批时间:"
                + (date == null ? "空" : DateUtil.format(date, DateTimePatternEnum.YYYY_MM_DD.getPattern()));
    }
}
